<template>
	<view>
		{{store.counter}}
		<u-button type="primary" @click="editData">修改数据</u-button>
	</view>
</template>

<script setup lang='ts'>
import { userStore } from '@/stores/userStore'	
const store = userStore();
console.log('store===>: ',store);
const editData=()=>{
	store.counter++;
}
</script>

<style lang='scss' scoped>
	@import "test.scss";
</style>